package com.example.chenjun.myapplication.mvp.contract;

import com.example.chenjun.myapplication.bean.CookBean;
import com.example.chenjun.myapplication.mvp.BasePresenter;
import com.example.chenjun.myapplication.mvp.IView;
import com.example.chenjun.myapplication.mvp.model.CookModel;

import java.util.List;

public class CookListContract {

    public interface CookListView extends IView{
        void getCookListSuccess(List<CookBean> list);

        void getCookListFailed(Exception e);
    }

    public static abstract class AbstractCookListPresenter extends BasePresenter<CookModel, CookListView>{
        public abstract void searchCookList(String searchKey, int index, int size);

        public abstract void getLabelCookList(String labelId, int index, int size);
    }
}
